package com.zzyl.serve.Task;


import com.zzyl.serve.service.IAlertRuleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 报警数据定时任务
 */
@Component
@Slf4j
public class AlertJob {

    @Autowired
    private IAlertRuleService alertRuleService;
    public void alertData() {
        log.info("AlertJob 执行定时任务了.............");

        //对报警数据进行过滤出来
        alertRuleService.deviceDataAlertFilter();
    }
}
